Skip to content

Conversation

@m6z1
Copy link
Contributor

@m6z1 m6z1 commented May 13, 2024

📌𝘐𝘴𝘴𝘶𝘦𝘴

📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯

  • SAA 구조로 리팩토링했습니다.
  • 바텀네비게이션 숨김 처리 이런 건 다 되어있더라구요 . . . ㅎㅎ (좋았습니다)
  • 앱 처음 진입 시 login 프래그먼트로 설정했습니다.

이유는 로그인 뷰모델에서 자동로그인 체크하기에 로그인을 초기 프래그먼트로 설정했슴다

📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵

[로그인-회원가입-홈 플로우 영상]
https://github.com/NOWSOPT34-Advanced-Study/Team3/assets/114990782/c7250434-7bf4-40f9-951f-89945705c5e3
Screen_recording_20240513_143714.webm

[마이페이지-회원탈퇴-로그인 플로우 영상]
Screen_recording_20240513_143714.webm

💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴

@m6z1 m6z1 requested review from Eonji-sw, cacaocoffee and chanubc May 13, 2024 05:39
@m6z1 m6z1 self-assigned this May 13, 2024
Copy link
Contributor

@chanubc chanubc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

start destination이랑
이에따른 stack 관리 코드 설정해 주시면 될것 같습니다!
popUpTo이나 popUpToInclusive이런거요!

Copy link
Member

@Eonji-sw Eonji-sw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우옹 세미나 과제에 ssa 적용해볼까 생각하고 있는데 참고해서 해봐야겠네용 졸프라고 들었는데 고생하셨어요! 저도 이제야 PR 올린 ㅎ..

(supportFragmentManager.findFragmentById(R.id.fcv_home) as NavHostFragment)
.findNavController()
binding.bnvHome.setupWithNavController(navController)
navController.navigate(R.id.fragment_login)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MainActivity에서 자동로그인 여부를 판단하고 로그인 화면으로 넘기는게 나을 것 같습니다!
지금은 무조건 로그인으로 넘어가고 로그인에서 자동로그인 여부를 판단하는데 불필요한 작업인것 같아서요!

로그인에서 옵저빙 하는 코드를 그대로 메인액티비티로 옮기시면 될것 같습니다!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스택 관리에 조금 더 효율적일 것 같아서요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[명지] SAA 리팩토링

4 participants